-- GENERATED SPELL FOR [Saltspittle Warrior] --


function spell0_3739(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_3739', 615, 1)
end

function spell1_3739(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(72,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3739', 6000, 1)
end

function spell2_3739(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(7386,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3739', 574, 1)
end

function Sorts_3739(pUnit, Event)
local choix_sorts_3739 = math.random(0, 2)
if choix_sorts_3739 == 0 then
pUnit:RegisterEvent('spell0_3739', 1, 1)
end
if choix_sorts_3739 == 1 then
pUnit:RegisterEvent('spell1_3739', 1, 1)
end
if choix_sorts_3739 == 2 then
pUnit:RegisterEvent('spell2_3739', 1, 1)
end
end

function mob3739_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3739', math.random(1500, 3000), 1)
end

function mob3739_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3739_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3739_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3739, 1, 'mob3739_Action')
RegisterUnitEvent(3739, 2, 'mob3739_Leave')
RegisterUnitEvent(3739, 3, 'mob3739_Kill')
RegisterUnitEvent(3739, 4, 'mob3739_Die')
